Welcome![Sign In][Sign Up]
Location:
Search - usb isp

Search list

[SCMDS1307

Description: 通过串口数据设置可调整时钟程序 1、程序说明: 该例程演示了如何通过串口数据设定时钟,采用数码管显示。 2、 操作: 1、该串口1可以设置为通过USB口输出或者通过DB9口输出。 如果使用USB输出,请使用USB线将开发板连接至电脑, 如果使用DB9输出,请使用DB9直连线将开发板的J25插座连接至电脑. 同时将跳线插座J28跳到TxD1和RxD1. 打开STC-ISP下载软件中的串口助手,选择相应串口号, 选择波特率9600,8位数据位,1位停止位,无校验。 点打开串口 接收缓冲区选择“HEX模式” 发送缓冲区选择“HEX模式” 从串口助手发送区输入数据格式如下 aa 55 n1 n2 n3 n4 n5 n6 n7 xx 其中aa 55为两个开始数据,xx为校验数据, n1 n2 n3 n4 n5 n6 n7为秒、分、时、星期、日、月、年的数据。 检验数据为aa+55+n1+n2+n3+n4+n5+n6+n7的结果。 十六进制数据,例如 aa 55 00 25 09 05 01 05 15 4d点击发送, 发送数据后,如果数据合法,时钟将重新设置。 -The adjustable clock program through the serial data 1. Program Description: This example demonstrates how to set the clock via the serial data, the use of digital display. 2: 1, 1 serial port that can be set to output via USB port or via DB9 port output. If you use a USB output, use a USB cable connected to the computer board, If you use a DB9 output, use a DB9 straight cable to connect the socket J25 development board to the computer. While the socket J28 jumper to jump TxD1 and RxD1. Open the STC-ISP download software serial assistant, the corresponding serial number, Select the baud rate of 9600, 8 data bits, 1 stop bit, no parity. Point to open the serial port receive buffer HEX mode Transmit Buffer Select HEX mode Input data serial format to send aides area below aa 55 n1 n2 n3 n4 n5 n6 n7 xx Wherein aa 55 to start two data, xx To verify that data, n1 n2 n3 n4 n5 n6 n7 seconds, minutes, hours, day, date, month, and year of data. Test data
Platform: | Size: 109568 | Author: 科恩电子 | Hits:
« 1 2 ... 5 6 7 8 9 10»

CodeBus www.codebus.net